package com.zyh.javase_shijuan.test3.domain;

import java.util.Scanner;

public class Phone implements RedRay{
    @Override
    public void controlTV(TV tv) {
        System.out.println("手机开启红外功能，控制电视");
        System.out.println("请输入节目名称：");
        String tvShow = new Scanner(System.in).next();
        tv.play(tvShow);
    }
}
